//
//  WJCDeployModel.h
//  WJCLibrary
//
//  Created by wjc on 2022/2/8.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, deployModelKey) {
    /**app访问api前缀(必须)*/
    WJCDeployAPIHeadUrl=0,///
    /**APP名称(必须)*/
    WJCDeployAPPName,///
    /**APP设置的schema(SKU/必须)*/
    WJCDeployAPPSchema,///
    /**APP图片访问(与UIImageView+WJCDownload.h挂钩,如果服务端返回http图片,则设置为@""空字符串)*/
    WJCDeployImageHeadUrl,///
    /**APP配置环境 设置为dev为测试版,控制台打印api访问,其他或不设置,为正式版*/
    WJCDeployEnv,///
    /**图片选择器+号图*/
    WJCDeployAddImage,///
    /**占位图(与UIImageView+WJCDownload.h挂钩)*/
    WJCDeployHeadImage,///
    /**上传图片地址,无地址则默认WJCDeployAPIHeadUrl;*/
    WJCDeployUploadImageUrl,///
    /**上传图片地址,无地址则默认WJCDeployAPIHeadUrl;*/
    WJCDeployUploadImageUrls,///
};///其余配置可直接set
@interface WJCDeployModel : NSObject

/// 配置字典
/// *注配置字段只会增不会减,内置for循环替换key,但是不会删除某字段
/// @param dic 保存配置字典/// @"homeAPI":必须要,为APP访问api的前缀以'/'结尾
+(void)setDeployWithDic:(NSDictionary*)dic;
//针对性修改配置表,描述详细查看枚举
+(void)setDeployWithDeployKey:(deployModelKey)key andValue:(NSString*)value;
+(id)getDeployWithStr:(NSString*)deployKey;
+(id)getDeployWithDeployKey:(deployModelKey)key;
@end

NS_ASSUME_NONNULL_END
